//
// Created by wkm on 2023-12-06.
//

#include "one_bit_adder.h"

void one_bit_adder(bool a, bool b, bool cin, bool &sum, bool &cout) {
    sum = a ^ b ^ cin;
    cout = (a & b) | (a & cin) | (b & cin);
}